import numpy as np

a = np.array([[1, 2], [3, 4]])
b = np.array([[11, 12], [13, 14]])

# vdot 将数组展开计算内积
print(np.vdot(a, b))

'''计算过程
a=[1,2,3,4]
b=[11,12,13,14]
vdot(a,b) = a * b.T
    = 1*11 + 2*12 + 3*13 + 4*14
    = 11 + 24 + 39 + 56
    = 130

'''